package com.pks.datacenter.entity.basic;

import lombok.Data;
import lombok.EqualsAndHashCode;

import com.pks.util.coder.database.DBField;
import com.pks.util.coder.database.DBTable;
import com.pks.web.mybatis.entity.BasicEntity;

@Data
@EqualsAndHashCode(callSuper = true)
@DBTable(tags = "系统参数配置" )
public class SystemConfig extends BasicEntity {

	private static final long serialVersionUID = -5259673674522689993L;

	/** 获取配置的KEY */
	public static final String KEY_MAP = "configMap";
	/** 系统版本号 */
	public static final String KEY_SYSTEM_VERSION = "system_version";
	/** 数据源版本号 */
	public static final String KEY_DATA_VERSION = "data_version";

	@DBField(name = "type" , comment = "类型 ，由项目中定义的具有相应含义的key值")
	private String type;// 类型
	@DBField(name = "vals" , comment = "对应的值")
	private String vals;// 值

	public SystemConfig() {
		super();
	}
	public SystemConfig(Long id, String type, String vals) {
		setId(id);
		this.type = type;
		this.vals = vals;
	}

}
